import request from '@/utils/request';
/** 个人中心 */
export const personalInfoApi = () => request.get('/api/admin/personal');
export const updatePersonalInfoApi = (data) => request.put('/api/admin/personal', data);
export const updateSingleInfoApi = (data) => request.put('/api/admin/personal/edit', data);
export const postLiveStatus = (data) => request.post('/api/admin/live', data);

export const messageNoticesApi = (params) => request.get('/api/admin/personal/notice/list', { params });
export const unreadMsgNumApi = (params) => request.get('/api/admin/personal/notice/unread/num', { params });
export const readMessageApi = (data) => request.post('/api/admin/personal/notice/read', data);
export const getMessageApi = (params) => request.get('/api/admin/personal/notice', { params });
export const delMessageApi = (data) => request.delete('/api/admin/personal/notice', data);
